<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            transition: 2s;
            border: 1px solid pink;
            border-radius: 50%;
        }

        img:hover {
            /* deg 表示旋转的度数 */
            transform: rotate(720deg);
        }
    </style>
</head>

<body>
    <img src="./images/pic.jpg" />
</body>

</html>